#ifndef _ACCEPTOR_H_
#define _ACCEPTOR_H_

#include <memory>


namespace as
{
namespace snet
{
	class EndPoint;
	class EventLoop;
	class Acceptor
	{
	public:
		Acceptor(std::shared_ptr<EventLoop> &ev);
		~Acceptor();

		bool start(const EndPoint &ep);
		bool start(const char *ip, unsigned short port);
		void stop();
		void update();

	public:

		class impl;
		std::unique_ptr<impl> m_impl;
	};

}
}
#endif



